package generator;


/**
 * @author eairlv
 * @description
 * @date 17:53 2019/8/19
 */
public class GeneratorStarter {

    public static final String[] TABLE_NAME = {"base_vehicle"};

    public static void main(String[] args) {
        Generator generator = new Generator();
        for (int i = 0; i < TABLE_NAME.length; i++) {
            generator.generator(GeneratorDataSource.builder()
                    .driverName("com.mysql.jdbc.Driver")
                    .driverUrl("jdbc:mysql://10.50.40.145:3306/lv?useUnicode=true&characterEncoding=utf-8&useSSL=false")
                    .userName("root")
                    .password("cdwk-3g-145")
                    .build(), GeneratorInfo.builder()
                    .author("eairlv-cli-plus")
                    .projectPackage("com.eairlv.cli.plus")
                    .generatorModule("generator")
                    .build(), TABLE_NAME[i]);
        }
    }
}
